package com.lry.rpc.netty.processor;

import com.lry.rpc.netty.MsgType;
import com.lry.spi.EnhancedServiceLoader;


public class ProcessorFactory {

    public static Processor getProcessor(byte code) {
        return EnhancedServiceLoader.load(Processor.class, MsgType.getName(code));
    }

}
